package com.taglab.chic.atom;

import java.io.Serializable;

/**
 * @author Markus Kobler
 */
public class Person implements Serializable {
  
  private static final long serialVersionUID = 50677885935517648L;

  private String name;
  private String email;
  private String uri;

  public Person(String name) {
    if( name == null ) throw new NullPointerException("name cannot be null");
    this.name = name;
  }

  public Person(String name, String email) {
    this( name );
    this.email = email;
  }

  public Person(String name, String email, String uri) {
    this( name );
    this.email = email;
    this.uri = uri;
  }

  public String getName() {
    return name;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getUri() {
    return uri;
  }

  public void setUri(String uri) {
    this.uri = uri;
  }

}
